<?php
  class   Model_Publicdetail extends  Zend_Db_Table_Abstract
{
	protected  $IdUser;
	
	protected $NameTblAdmin = "user";
	protected $Dtap ;
	
	public function GetIdUser($IdUse)
	{
		$this->IdUser = $IdUse;
	}
	public  function __construct()
	{
		//xu ly close connect o day
		
		//end
		$this->Dtap = Zend_Registry::get("db");
	}
	public function ReturnTblAdminbyId()
	{
		
		$query=$this->Dtap->query("select *
				 from $this->NameTblAdmin where id=$this->IdUser");
		$row =$query->fetchAll();
		return $row;
	}
	
	
}